// eslint-disable-next-line max-classes-per-file
import { JsonProperty, Serializable } from '@/plugins/reflect-metadata';

import CardTypeItem from './CardTypeItem';

@Serializable()
export class CardTypeQuery {
  @JsonProperty('page')
    page: number = 10;

  get params() {
    return {
      page: this.page,
    };
  }
}
@Serializable()
export default class CardTypeList {
  @JsonProperty({ name: 'data', type: CardTypeItem })
    items: CardTypeItem[] = [];

  get total() {
    return this.items.length;
  }
}
